package com.xdxc.model.dto;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
public class ExamPaperDto {
    private int id;
    private String name;
    private String date; // 可以使用 LocalDateTime，具体取决于你的需求
    private int duration;


    private List<QuestionGroup> questionGroups;

    @Data
    public static class QuestionGroup {
        private String type;
        private String title;
        private List<Question> questions;

        @Data
        public static class Question {
            private String id;
            private String quId;
            private int quType;
            private String quTypeDictText;
            private String manual;
            private int answerOrder;
            private int score;
            private String content;
            private String analysis;
            private String image;
            private List<Object> subList; // 可以根据你实际的数据类型更改
            private List<AnswerVo> answerVoList;
            private CorrectAnswerVo correctAnswerVo;
            private boolean showExplanation;
            private boolean selected;

            @Data
            public static class AnswerVo {
                private String id;
                private String answerId;
                private String quId;
                private int sort;
                private String abc;
                private Object pathScore; // 可以根据你实际的数据类型更改
                private String content;
                private String image;
                private Object scoreRate; // 可以根据你实际的数据类型更改
            }

            @Data
            public static class CorrectAnswerVo {
                private String questionId;
                private List<String> optionIds;
                private Object judgmentAnswer; // 可以根据你实际的数据类型更改
                private List<Object> fillKeywords; // 可以根据你实际的数据类型更改
                private int answerVersion;
            }
        }
    }
}
